﻿@model _12._30._2014_MVC.Models.HomeViewModel
@{
    ViewBag.Title = "Todos";
}

<h2>Todos</h2>
<p>@Model.Name</p>

<table class="table table-striped table-bordered">
    <tr>
        <th>Text</th>
        <th>Created Date</th>
        <th>Is Completed</th>
    </tr>
    @foreach(var todo in Model.Todos)
    {
        <tr>
            <td>@todo.Text</td>
            <td>@todo.DateCreated</td>
            <td>@todo.IsCompleted</td>
        </tr>
    }
</table>